import {http} from '../utils'
exports.getMajorDictList = function (parent) {
  return http({
    type:'get',
    url:`/MajorDict/List?parent=${parent}`
  })
}

exports.addMajorDict = function (data) {
  return http({
    type:'post',
    url:`/MajorDict`,
    data:JSON.stringify(data),
    headers: {'Content-Type': 'application/json; charset=UTF-8'}
  })
}

exports.reviseMajorDict = function (id,data) {
  return http({
    type:'put',
    url:`/MajorDict?id=${id}`,
    data:JSON.stringify(data),
    headers: {'Content-Type': 'application/json; charset=UTF-8'}
  })
}

exports.deleteMajorDict = function (qid) {
  return http({
    type:'delete',
    url:`/MajorDict?id=${qid}`
  })
}
